#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <unistd.h>
#include <fcntl.h>
#include "errsys.h"

struct A
{
	char d;
	int i;
	char c;
	int j;
};

int main(int argc, char **argv)
{
	printf("%d\n",sizeof(struct A));
	struct A *a = (struct A*)malloc(sizeof(struct A));
	a->c='x';
	a->i=5;
	a->j=9;

	printf("%d\n",*(int*)a);
	printf("%d\n",a->i);
	return 0;
}

